package ccnu.agile.service.impl.business;

import ccnu.agile.bean.request.Request;
import ccnu.agile.bean.response.Response;
import ccnu.agile.constant.System;
import ccnu.agile.service.IBusinessService;
import ccnu.agile.service.IVerifyCodeService;
import ccnu.agile.utils.LogUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: JreamY
 * @Date: 2021/11/4
 **/
@Service(System.ApiBusinessName.SPECIAL)
public class TestBusiness implements IBusinessService<Request, Response> {

    @Autowired
    @Qualifier(System.VerifyCodeBean.EMS)
    private IVerifyCodeService verifyCodeService;

    @Override
    public void doBusiness(Request request, Response response) {

        LogUtils.info(this, "test request: {}", request);

        response.setFailure();
    }
}
